#pragma once
#include <mutex>
#include <map>
#include "CTimer.h"

using namespace std;

class CTimerFactory
{
public:
	static CTimerFactory* GetInstance();
	static void Release();

public:
	CTimer* AllocateTimer();
	void Giveback(CTimer* &pTimer);

private:
    map<quint64, CTimer*> m_mapTimers;
};

